using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class TestInput : MonoBehaviour
{
    public InputAction mouseClick;
    public InputAction inputaction;
    void Start()
    {
        mouseClick.Enable();
        mouseClick.started += (cacllbake) => { print("进入事件，鼠标点下去了"); };
        mouseClick.performed += func;
        mouseClick.canceled += (cacllbake) => { print("结束事件，鼠标抬起来了"); };
    }
    private void func(InputAction.CallbackContext callbackContext)
    {
        print("触发了事件，鼠标按下途中");
    }
    // Update is called once per frame
    void Update() { }
}